package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 冲洗液配方 对应表 CM_PREFLUSH_EXPERIMENT_FORMULA
public class CM_PreflushExperimentFormula extends BABaseEntity {
    @Id
    @GenericGenerator(name="preflushFormulaGenerator", strategy="uuid")
    @GeneratedValue(generator="preflushFormulaGenerator")
    private String CM_PreflushExperimentFormula_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "MATERIALTYPE", length = 50)
    private String materialType;

    @Basic
    @Column(name = "MATERIALNAME", length = 50)
    private String materialName;

    @Basic
    @Column(name = "MATERIALDENSITY")
    private Double materialDensity;

    @Basic
    @Column(name = "DOSAGE")
    private Double dosage;

    @Basic
    @Column(name = "DOSAGEUNIT")
    private Double dosageUnit;

    @Basic
    @Column(name = "WEIGHT")
    private Double weight;

    @Basic
    @Column(name = "VOL")
    private Double vol;

    @Basic
    @Column(name = "SAMPLEPLOT", length = 50)
    private String samplePlot;

    @Basic
    @Column(name = "MATERIALNO", length = 50)
    private String materialNO;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;
}
